import request from '@/utils/request'

// 查询户管理列表
export function listDoor(query) {
  return request({
    url: '/fund/cost/list',
    method: 'get',
    params: query
  })
}

// 查询户管理详细
export function getDoor(doorId) {
  return request({
    url: '/fund/cost/' + doorId,
    method: 'get'
  })
}

// 新增户管理
export function addDoor(data) {
  return request({
    url: '/fund/cost',
    method: 'post',
    data: data
  })
}

// 修改户管理
export function insertCost(data) {
  return request({
    url: '/fund/cost',
    method: 'put',
    data: data
  })
}

// 删除户管理
export function delDoor(doorId) {
  return request({
    url: '/fund/cost/' + doorId,
    method: 'delete'
  })
}

//缴费打印通知书
export function getNote(doorId) {
  return request({
    url:'/fund/cost/getNote/'+doorId,
    method:'get'
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list1',
    method: 'get'
  })
}

// 获取楼宇信息
export function getGroupInfo(areaName) {
  return request({
    url: '/house/group/getGroupInfo/'+areaName,
    method: 'get'
  })
}

// 获取单元信息
export function getUnitInfo(areaName,groupName) {
  return request({
    url: '/house/unit/getUnitInfo/'+areaName+"/"+groupName,
    method: 'get'
  })
}

// 获取用途信息
export function getPurposeInfo() {
  return request({
    url: '/house/purpose/list',
    method: 'get'
  })
}


